Skip to content

)}

EventPatternSourceBase.Add(Delegate, Action) method

Defined in

Type: EventPatternSourceBase Namespace: System.Reactive Assembly: System.Reactive.dll

Applies to

netstandard2.0

protected void Add(Delegate handler, Action<TSender?, TEventArgs> invoke)

Summary: Adds the specified event handler, causing a subscription to the underlying source.

Parameters

NameTypeDescription
handlerDelegateEvent handler to add. The same delegate should be passed to the [Remove](# operation in order to remove the event handler.
invokeActionInvocation delegate to raise the event in the derived class.

Exceptions

TypeCondition
System.ArgumentNullExceptionhandler or invoke is null.